<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>烦恼列表 | 烦恼留声机</title>
	
<h2>Vexations List</h2>


<?php 
/*
CREATE TABLE vexation (
    vid INTEGER PRIMARY KEY AUTOINCREMENT,
    owner INTEGER NOT NULL,
	belong INTEGER NOT NULL,
    summary varchar(255),
    detail varchar(2550),
    u_attach_entry int(11), 
    solution varchar(2550),
    v_attach_entry int(11)
);
*/


echo "Vexations:".count($query->result_array())."<br />";
foreach ($query->result() as $row)
{
        echo $row->vid;
		echo " | ";
        echo $row->owner;
		echo " | ";
        echo $row->belong;
		echo " | ";
		echo $row->summary;
		echo " | ";
		echo $row->detail;
		echo "<br />";
}
?>
	

</body>
</html>